﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PotatoSoft
{
    namespace VOCTS
    {
        namespace Workbench
        {
            public class Workspace
            {
                public string WorkspaceID { get; set; }
                public string WorkspaceName { get; set; }
                public List<Project> WorkspaceProjects { get; set; }

                public void AddProject(Project p)
                {
                    if (WorkspaceProjects == null)
                    {
                        WorkspaceProjects = new List<Project>();
                    }

                    if (!WorkspaceProjects.Contains(p))
                    {
                        WorkspaceProjects.Add(p);
                    }

                    p.Workspace = this;
                }  
            }
        }
    }
}
